$(document).ready(function(){
	$('table.main_table tbody tr:odd').addClass('tr_odd');
	$('table.main_table tbody tr:even').addClass('tr_even');
	
	$('.tr_odd').each(function(){
		$(this).bind('mouseover',function(){
			$(this).attr('class','tr_mouseover');	
		});
		$('.tr_odd').bind('mouseout',function(){
			$(this).attr('class','tr_odd');	
		});	
	});
	
	$('.tr_even').each(function(){
		$(this).bind('mouseover',function(){
			$(this).attr('class','tr_mouseover');	
		});
		$('.tr_even').bind('mouseout',function(){
			$(this).attr('class','tr_even');	
		});
	});
	});

function checkAll(name){
		if($('#checkall').attr('checked') == true){
			$("input[name='"+name+"']").each(function() {
				this.checked=true;
			});
		}else{
			$("input[name='"+name+"']")	.each(function(){
				this.checked=false;	
			});
		}
}
